package com.cherish.pattern.observer.guava;

import com.google.common.eventbus.EventBus;

/**
 * @Classname GuavaEventTest
 * @Date 2019/4/7 22:43
 * @Author admin
 * @Description TODO
 */
public class GuavaEventTest {

    public static void main(String[] args) {
        //消息总线
        EventBus eventBus = new EventBus();
        GuavaEvent guavaEvent = new GuavaEvent();
        eventBus.register(guavaEvent);
        eventBus.post("tom");

    }

}
